package com.example.demo.controller;

import com.point.user.dto.UserDto;
import org.apache.dubbo.config.annotation.Reference;
import com.point.user.entity.User;
import com.point.user.service.UserService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wangyahong on 2018/5/6.
 */
@RestController
public class TestController {

    @Reference(version = "1.0.0", check = false)
    private UserService userService;


    @RequestMapping("/addUser")
    public Integer addUser(@RequestBody UserDto userDto){
        return userService.addUser(userDto);
    }



}
